@extends('admin.layouts.base')

@section('title','后台管理系统')

@section('pageHeader','后台管理系统')

@section('pageDesc','DashBoard')

@section('content')
<div class="row page-title-row" id="dangqian" style="margin:5px;">
    <div class="col-md-6">
        <a style="margin:3px;"  href="/admin/budget?id={{ Request::get('id') }}&pid={{ Request::get('pid') }}"
           class="btn btn-warning btn-md animation-shake reloadBtn"><i class="fa fa-mail-reply-all"></i> 返回表格
        </a>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            @include('admin.partials.errors')
            @include('admin.partials.success')
            <div class="box-body">
                <table id="tags-table" class="table table-bordered table-hover">
                    <thead>
                    <tr>
                        <th data-sortable="false" class="hidden-sm"></th>
                        <th class="hidden-sm">新值</th>
                        <th class="hidden-sm">旧值</th>
                        <th class="hidden-sm">行</th>
                        <th class="hidden-sm">列</th>
                        <th class="hidden-sm">修改时间</th>
                    </tr>
                    @foreach($list as $item=>$value)
                        <tr>
                            <th data-sortable="false" class="hidden-sm">{{$item+1}}</th>
                            <th class="hidden-sm">{{$value['new_value']}}</th>
                            <th class="hidden-sm">{{$value['old_value']}}</th>
                            <th class="hidden-sm">{{$value['row']}}</th>
                            <th class="hidden-sm">{{$value['col']}}</th>
                            <th class="hidden-sm">{{ $value['created_at'] }}</th>
                        </tr>
                    @endforeach
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-sm-5">
    </div>
    <div class="col-sm-7">
        <div class="dataTables_paginate paging_simple_numbers">
            <ul class="pagination">
                {{ $list->appends(['id' => Request::get('id') , 'pid'=>Request::get('pid')])->render() }}
            </ul>
        </div>
    </div>
</div>
@stop